package com.attendance;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.attendance.mapper")
public class AttendanceApplication {
    public static void main(String[] args) {
        // 设置控制台编码为UTF-8
        System.setProperty("file.encoding", "UTF-8");
        // 为Windows控制台设置UTF-8编码
        try {
            System.setProperty("sun.stdout.encoding", "UTF-8");
            System.setProperty("sun.stderr.encoding", "UTF-8");
        } catch (Exception e) {
            e.printStackTrace();
        }
        SpringApplication.run(AttendanceApplication.class, args);
    }
} 